package com.qf.events;

import com.qf.enums.LoginResultEnum;

/**
 * created by 赵文韬 on 2022/3/19 13:48
 */
public class MyLoginEvent {
    //声明一个枚举类属性
    private LoginResultEnum resultEnum;
    //一个userName属性，表示当前登录的用户名
    private String userName;
    //有参构造，getset方法，tostring

    public MyLoginEvent() {
    }

    public MyLoginEvent(LoginResultEnum resultEnum, String userName) {
        this.resultEnum = resultEnum;
        this.userName = userName;
    }

    public LoginResultEnum getResultEnum() {
        return resultEnum;
    }

    public void setResultEnum(LoginResultEnum resultEnum) {
        this.resultEnum = resultEnum;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "MyLoginEvent{" +
                "resultEnum=" + resultEnum +
                ", userName='" + userName + '\'' +
                '}';
    }
}
